puzzle (someone) out

Translations
cerner quelqu’un
Definitions
To figure out or understand someone’s thoughts, motives, or behavior, especially when they are confusing or mysterious.